<template slot="search">
  <div>
    <el-form-item label="真实姓名">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.realName"
        placeholder="真实姓名"
      ></el-input>
    </el-form-item>
    <el-form-item label="城市">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.city"
        placeholder="城市"
      ></el-input>
    </el-form-item>
    <el-form-item label="学校">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.schoolName"
        placeholder="学校"
      ></el-input>
    </el-form-item>

    <el-form-item label="流水来源">
      <el-select size="mini" v-model="params.source" placeholder="请选择">
        <el-option
          v-for="item in source"
          :key="item.value"
          :label="item.name"
          :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>

    <el-form-item label="流水类型">
      <el-select size="mini" v-model="params.type" placeholder="请选择">
        <el-option
          v-for="item in type"
          :key="item.value"
          :label="item.name"
          :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>

    <el-form-item label="流水状态">
      <el-select size="mini" v-model="params.status" placeholder="请选择">
        <el-option
          v-for="item in status"
          :key="item.value"
          :label="item.name"
          :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>
  </div>
</template>
<script>
export default {
  data() {
    return {
      params: {
        realName: "",
        city: "",
        schoolName: '',
        type: "",
        source: "",
        status: '',
      },

      source: [],
      status: [
      ],
      type: [
      ]
    };
  }
  , created() {
    this.$get('/integral/getWaterStatusSourceType', {}).then( res => {
      if (res.R) {
        this.source = res.data.source
        this.type = res.data.type
        this.status = res.data.status
      }
    })
  }
};
</script>
<style scoped>
</style>
